home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / dialog / dialogjb / dialogjb.txt < prev    next >
Encoding:
Text File  |  1995-08-27  |  1.9 KB  |  44 lines

  1. DIALOGJB.TXT
  2.  
  3.        DialogJB--The Plain Visual Basic Common Dialog Replacement
  4.  
  5. This took a number of hours to make, but it takes the place of the
  6. Common Dialog Box for opening, reading, or loading files.  With the use
  7. of the List Box controls, it can do everything the Common Dialog Box
  8. can in the "Open File" Action and with a little modification can do
  9. what the "Save File" Action would do.  You could also add a "Help" button
  10. to it and customize it in any way.  Unlike the Common Dialog Box that
  11. ships with Visual Basic, you can control where it appears on the screen,
  12. and you can control the color and appearance.  Add bitmaps, or whatever.
  13. As written, it presents a 3D gray form which has become popular for Windows
  14. applications including Win95.  Most importantly, it takes up a lot less
  15. space--no COMMDLG.DLL, CDIALOG.VBX, CMDIALOG.VBX, THREED.VBX, or other
  16. add-on file.
  17.  
  18. The form DIALOGJB.FRM is the form to add to your main program.  
  19. This is the code for the Common Dialog Box.  The file
  20. DLGJB2.FRM is, strictly speaking, not a form to load, but is a text file
  21. with the routine for loading frmDialogJB from the Main form and three
  22. helpful but optional routines which may be used in a MODULEx.BAS.
  23.  
  24. DialogJB as written includes calls to an INI file.  This, of course,
  25. is optional depending on whether you need to read certain files or if
  26. you need an "initial directory" feature.  I have written it to use
  27. the small VBX called INICON.VBX put out by Mabry Software. (Many
  28. BBS's and similar services carry demos of it.)  There are
  29. other similar VBX's--or you may use the Windows API calls (if you
  30. can get the things to work).
  31.  
  32. This was written with Visual Basic for Windows 3.0, but I believe it
  33. works pretty much the same with earlier versions.
  34.  
  35. If you want to see how this is used, check out the shareware utility
  36. WinAlter.
  37.  
  38. Enjoy.
  39.  
  40. James Bair
  41. CompuServe 70730,3001
  42. jbair@csunet.ctstateu.edu
  43.  
  44.